﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Golos.Tags.TagCache
{
    public class TagsDictionary : Dictionary<string, List<Guid>>, IDictionary<string, List<Guid>>
    {
        public new bool ContainsKey(string key)
        {
            foreach (string thisKey in this.Keys)
            {
                if (thisKey.ToUpperInvariant() == key.ToUpperInvariant())
                    return true;
            }
            return false;
        }

        public List<Guid> Get(string key)
        {
            foreach (string thisKey in this.Keys)
            {
                if (thisKey.ToUpperInvariant() == key.ToUpperInvariant())
                    return this[thisKey];
            }
            return new List<Guid>();
        }
    }
}
